package com.haircut.project.service.salary;

import com.haircut.project.model.salary.UserSalary;
import com.haircut.project.model.salary.UserSalaryBatch;
import com.haircut.project.vo.record.SalaryQueryVo;

import java.util.Date;

public interface ISalaryCalcService {
    /**
     * 就算工资
     */
    void calcSalary(String redisKey, Boolean ignoreDate, Date currDate);

    /**
     * 计算个人工资
     * @param queryVo
     * @param batch
     * @param redisKey
     */
    Integer calcUserSalary(SalaryQueryVo queryVo, UserSalaryBatch batch, String redisKey);

    /**
     * 重新计算
     * @param salaryId
     */
    void recalculation(UserSalary salary, String redisKey);
}
